<?php
/**
 * Created by Veyron
 * User: Vy
 * motto:现在的拼搏 为了更好的明天
 * day:  2020/1/17
 * Time: 11:33
 */

namespace app\api\controller;

use app\common\lib\Time;
class Loginout extends AuthBase {
    public function index() {
        //删除redis缓存
        $res = cache(config('redis.token_pre').$this->accessToken,null);
        if($res){
            return show(config('status.success'),'退出成功');
        }

        return show(config('status.error'),'退出失败');
    }

}
